const mongoose = require('mongoose');

const addSeating=async ({ seatsId,scheduleId,b})=>{

    return await mongoose.model('seating').create({ seatsId:seatsId,scheduleId:scheduleId,seating:b,status:false})

}

const getSeat=async ({seatingId})=>{
  return await mongoose.model('seats').find({_id:seatingId}).populate('_id')
}

const getSc =async ()=>{
return await mongoose.model('seating').find()
}
module.exports={addSeating,getSeat,getSc}